export function readFileToArray(filePath, callback) {
    var xhr = new XMLHttpRequest();
    xhr.open('GET', filePath, true);
    xhr.responseType = 'text';
    xhr.onload = function() {
      var lines = this.response.split('\n');
      callback(lines);
    };
    xhr.send();
  }
  export default {readFileToArray}